package com.cofluent.web.server;

import java.util.Vector;

import org.w3c.dom.Element;

public class BuildElements extends XMLSerializerUtil
{
	private static final String BUILD_ELEMENT_FIELD = "build";

	public BuildElements(Element element)
	{
		super(element);
	}
	
	public Vector<BuildElement> getBuildElements()
	{
		Vector<BuildElement> result=new Vector<BuildElement>();
		result=getFields(BuildElement.class, BUILD_ELEMENT_FIELD);
		return result;
	}
	
	public BuildElement createAndAddBuildElement()
	{
		return (BuildElement) createAndAdd(BuildElement.class, BUILD_ELEMENT_FIELD);
	}
	
	public void remove(BuildElement buildElement)
	{
		remove(buildElement.element);
	}
}
